package cn.com.wdjedu.androidapp.wjeduandroid.ui.courseui;

import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.BaseAdapter;

import java.util.ArrayList;
import java.util.List;

import cn.com.wdjedu.androidapp.wjeduandroid.R;
import cn.com.wdjedu.androidapp.wjeduandroid.mvp.main.MainPresenter;
import cn.com.wdjedu.androidapp.wjeduandroid.mvp.main.Mainview;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.baseui.AbstractAppFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.baseui.ListViewFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.mainfragment.MainBean;

/**
 * 课程界面
 */

public class CourseUiFragment extends ListViewFragment<CourseList,MainPresenter> implements Mainview{

    public static AbstractAppFragment newInstance() {
        Bundle args = new Bundle();
        CourseUiFragment fragment = new CourseUiFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public List<CourseList> getList() {
        List<CourseList> arraylist=new ArrayList<>();

        return null;
    }

    @Override
    protected BaseAdapter buildListAdapter() {
        return new CourseUiAdapter(getActivity(), R.layout.item_course_list,lists);
    }

    @Override
    protected void listViewItemClick(AdapterView parent, View view, int position, long id) {

    }

    @Override
    protected MainPresenter createPresenter() {
        return new MainPresenter(this);
    }


    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showError(String error) {

    }

    @Override
    public void queryNewMainData(MainBean mainBean) {

    }
}
